home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / screen.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  1KB  |  35 lines

  1. #ifndef __SCREEN_H_
  2. #define __SCREEN_H_
  3.  
  4. #include "graphpp.h"
  5. #include "simple.h"
  6.  
  7. enum { MEDIUM_ICON = 1, SMALL_ICON, LARGE_ICON };  // Icon types
  8.  
  9. struct ScreenSet
  10.     {
  11.     uchar cell_height;        // Height of cells of the screen (25 x 80)
  12.     uchar log2cell_width;
  13.     uchar cell_width;         // Width of cells of the screen (25 x 80)
  14.  
  15.     uchar standart_width;         // Char dimentions, not connected with
  16.     uchar standart_height;        // cells. Used as default for screen output.
  17.     uchar sub_interval;
  18.  
  19.     loc ICON_PIXELS_1;     // Type 1 icon size in pixels
  20.     loc ICON_PIXELS_2;     // Type 2 icon size in pixels
  21.     loc ICON_PIXELS_3;     // Type 3 icon size in pixels
  22.  
  23.     loc icon_types[4];     // Array of loc(0, 0), ICON_TEXT_1, 2, 3.
  24.  
  25.     int g_driver;           // BGI driver and mode
  26.     int g_mode;
  27.  
  28.     ScreenSet(int gdriver, int gmode);
  29.     int* get_cells(rect cur_rect);
  30.     };
  31. extern ScreenSet* pScreenSet;
  32. ///////////////////////////////////////
  33.  
  34.  
  35. #endif __SCREEN_H_